import React, {lazy} from 'react';
import Home from '@/pages/home';
import Class from '@/pages/Class/Class';
import Home2 from '../pages/home2/index';
import {MyRoute} from "@/typings";

const routes: MyRoute.MyRouteProps[] = [
  {
    path: "/",
    name: '首页',
    component: Home,
  },
  {
    path: "/class",
    name: '分类',
    component: Class,
  },
  {
    path: "/tacos",
    routes: [
      {
        path: "/tacos",
        name: 'Home2',
        component: Home2
      },
    ]
  }
];

export default routes